<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>Projetos</title>
</h:head>
<h:body>

	<ui:composition template="template.xhtml">

		<ui:define name="template_title">
       Inclusão de Projetos
      </ui:define>

		<ui:define name="page_content">
			<h:form id="form">

				<p:panel id="panel" header="Novo Projeto"
					style="margin-bottom:10px;">
					<!-- <p:messages id="messages" /> -->
					<h:panelGrid columns="3">

						<h:outputLabel for="projetoID" value="Nome projeto: *" />
						<p:inputText id="projetoID" value="#{projetoBean.projeto.nome}"
							required="true" label="projeto">
						</p:inputText>
						<p:message for="projetoID" />

						<h:outputLabel for="clienteListID" value="Informe o cliente" />
						<h:outputText value="Cliente: " />
						<p:selectOneMenu id="clienteListID"
							value="#{projetoBean.projeto.cliente}" effect="fade"
							converter="cliente.converter">
							<f:selectItem itemLabel="Select One" itemValue="" />
							<f:selectItems value="#{projetoBean.valuesComboBoxCliente}"
								var="cliente" itemLabel="#{cliente.nome}" />
						</p:selectOneMenu>

						<p:message for="clienteListID" />
					</h:panelGrid>
				</p:panel>

				<p:commandButton value="Enviar" update="panel" id="ajax"
					actionListener="#{projetoBean.incluir}"
					styleClass="ui-priority-primary" />
			</h:form>
		</ui:define>
	</ui:composition>
</h:body>

</html>